package cn.itsource.org.domain;

import cn.itsource.base.domain.BaseDomian;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor  /*全參構造方法*/
@NoArgsConstructor
public class Department extends BaseDomian {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;

    private Long managerId;

    private Employee manager; /*部门经理*/

    private Long parentId;

    private Department parent; /*上级部门*/

    List<Department> children = new ArrayList<>();



}
